import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'

import router from './router'

//引入重置的样式
import "normalize.css"
//引入Vuex
import store from './store'
import './mock'
import i18n from './i18n'

//引入Element Plus图标集
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import CmTable from "@/components/CmTable.vue"
const app = createApp(App)
for (const[key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.component(CmTable.name,CmTable);
//挂载路由
app.use(router)
app.use(i18n)

//挂载Vuex
app.use(store)
app.mount('#app')
